---
title: search
layout: none
searchable: false
sitemap_include: false
---

[
{%- unless jekyll.environment == "development" %}
{%- assign searchedpages = site.pages | where: "searchable", true %}
{%- for page in searchedpages %}
{
"title": "{{ page.title | escape }}",
"url": "{{ site.urls[page.lang] }}{{ site.canonical_url_prefix }}/{{ page.url | remove_first: "/" | regex_replace: '^(ru/|en/)', '' }}",
{%- if page['module-kebab-name'] %}
  {%- assign keywords = page['module-kebab-name'] %}
{%- else %}
  {%- assign keywords = "" %}
{%- endif %}
{%- if page.search.size > 0 %}
  {%- if keywords.size > 0 %}
    {%- assign keywords = page.search | append: ", " | append: keywords %}
  {%- else %}
    {%- assign keywords = page.search %}
  {%- endif %}
{%- endif %}
"keywords": {{ keywords | jsonify }},
"summary": "{% if page.summary %}{{ page.summary | strip }}{% else %}{{ page.description | strip }}{% endif %}",
"content": {{ page.content | normalizeSearchContent | jsonify }}
}
{%- unless forloop.last %},{% endunless %}
{%- endfor %}
{%- assign configpages = site.pages | where_exp: "item", "item.legacy-enabled-commands.size > 0" | where: "lang", page.lang %}
{%- if configpages.size > 0 %},{% endif %}
{%- for page in configpages %}
{%- assign page_canonical_url = page.url | regex_replace_once: '^\/?(en\/|ru\/)', '' | relative_url %}
{%- assign keywords = "" %}
{%- if page['legacy-enabled-commands'] %}
  {%- if keywords.size > 0 %}
    {%- assign keywords = page['legacy-enabled-commands'] | append: ", " | append: keywords %}
  {%- else %}
    {%- assign keywords = page['legacy-enabled-commands'] %}
  {%- endif %}
{%- endif %}
{
"title": "{{ page.title | escape }}",
"url": "{{ site.urls[page.lang] }}{{ site.canonical_url_prefix }}/{{ page.url | remove_first: "/" | regex_replace: '^(ru/|en/)', '' }}",
"keywords": {{ keywords | jsonify }},
"content": "{{ page.title | escape }}"
}
{%- unless forloop.last %},{% endunless %}
{%- endfor -%}
{%- endunless %}
]
